-- GENERATED SPELL FOR [Illidari Agonizer] --


function spell0_19801(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(36227,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19801', 2000, 1)
end

function Sorts_19801(pUnit, Event)
local choix_sorts_19801 = math.random(0, 0)
if choix_sorts_19801 == 0 then
pUnit:RegisterEvent('spell0_19801', 1, 1)
end
end

function mob19801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19801', math.random(1500, 3000), 1)
end

function mob19801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19801, 1, 'mob19801_Action')
RegisterUnitEvent(19801, 2, 'mob19801_Leave')
RegisterUnitEvent(19801, 3, 'mob19801_Kill')
RegisterUnitEvent(19801, 4, 'mob19801_Die')
